Skip to main content

Start Instance

AutomatR.AWS.Activities.StartInstance

The "Start Instance" activity in AutomatR is part of the AWS EC2 activities package, allowing users to start a specified EC2 instance in their Amazon Web Services (AWS) environment. This activity provides control over the lifecycle of EC2 instances, enhancing the automation of cloud infrastructure management.

Properties

NameDescription
Input
Access Key IDThe encrypted access key ID for your AWS account, enabling connection to the Amazon EC2 service. String variables containing the access key ID.
Secret Access KeyThe encrypted secret access key ID for your AWS account, enabling connection to the Amazon EC2 service. String variables containing the secret access key.
RegionThe valid AWS region where your EC2 instance is created and the region in which you would like to start it. RegionEndpoint variables containing the region information.
Instance IDThe valid instance ID of the EC2 instance that you want to start. String variables containing the instance ID.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelayThe amount of time (in seconds) to wait before executing the "Start Instance" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 1000 milliseconds or 1 sec, set it to 1.

How to use:

  1. Drag and drop the "Start Instance" activity onto the workflow.
  2. Configure the properties by providing the access key ID, secret access key, region, and the instance ID of the EC2 instance you want to start.
  3. Optionally, configure the delay for synchronization purposes.
  4. Execute the workflow to start the specified EC2 instance.

Example: Consider an example where the "Start Instance" activity is used to start an EC2 instance with the ID "i-0abcdef1234567890" in the US East (N. Virginia) region:

Start Instance:
Access Key ID: "your-access-key-id"
Secret Access Key: "your-secret-access-key"
Region: RegionEndpoint.USEast1
Instance ID: "i-0abcdef1234567890"

In this example, the activity checks the current state of the specified EC2 instance. If the instance is not in the "running" state, the activity sends a request to start the instance.